package com.gxa.service.community;

import com.gxa.entity.community.Community;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CommunityService {
    //查询所有数据
    //分页查询
    List<Community> query();
    //分页查询
    List<Community> query(Integer pageNum,Integer pageSize);
    Map<String,Object> queryAll(Community community,Integer pageNum,Integer pageSize);
    //添加
    void add(Community community);
    //通过id删除
    void deleteById(@Param("id")Integer id);
    //通过id查询
    Community queryById(@Param("id")Integer id);
    //编辑
    void update(Community community);

    List<Community> queryByIdOrName(String comNum,String comName);

    //判断编码是否重复
    List<Community> queryByNum(String communityNum);
}
